{{each $data transform index }}
<div class="weui-form-preview transform-form" id="transform-form_{{transform.audit_no}}">
    <div class="weui-form-preview__hd transform-form__hd">
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">转换类型</label>
            <em class="weui-form-preview__value"><%=$imports.getDict('change_type',transform.change_type)%></em>
        </div>
    </div>
    <div class="weui-form-preview__bd transform-form__bd">
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">申请人</label>
            <span class="weui-form-preview__value">{{transform.cust_name}}</span>
        </div>
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">客户编号</label>
            <span class="weui-form-preview__value">{{transform.cust_code}}</span>
        </div>
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">申请日期</label>
            <span class="weui-form-preview__value"><%=$imports.format('date','yyyy-MM-dd',transform.apply_date)%></span>
        </div>
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">审核状态</label>
            {{if transform.audit_status==2}}
            <span class="weui-form-preview__value "><%=$imports.getDict('audit_status',transform.audit_status)%></span>
            {{else if transform.audit_status==3}}
            <span class="weui-form-preview__value warning"><%=$imports.getDict('audit_status',transform.audit_status)%></span>

            {{else}}
            <span class="weui-form-preview__value"><%=$imports.getDict('audit_status',transform.audit_status)%></span>
            {{/if}}
        </div>
        {{if transform.audit_status!=1&&transform.audit_status!=4}}
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">审核日期</label>
            <span class="weui-form-preview__value"><%=$imports.format('date','yyyy-MM-dd',transform.audit_date)%></span>
        </div>
        <div class="weui-form-preview__item">
            <label class="weui-form-preview__label">审核人</label>
            <span class="weui-form-preview__value">{{transform.opor_name}}</span>
        </div>
        {{/if}}
    </div>
    <div class="weui-form-preview__ft transform-form__ft">
        {{if transform.audit_status==1}}
        <a class="weui-form-preview__btn weui-form-preview__btn_warn" href="javascript:" operate="cancel" auditno="{{transform.audit_no}}">撤销</a>
        <a class="weui-form-preview__btn weui-form-preview__btn_default" href="#transform/detail/{{transform.audit_no}}">查看</a>
        {{else if transform.audit_status ==4 }}
        <a class="weui-form-preview__btn weui-form-preview__btn_warn" href="#transform/detail/{{transform.audit_no}}">已撤销</a>
        {{else}}
        <a class="weui-form-preview__btn weui-form-preview__btn_default" href="#transform/detail/{{transform.audit_no}}">查看</a>
        {{/if}}
    </div>
</div>
{{/each}}

